#-------------------------------------------------
#
# Project created by QtCreator 2011-03-31T15:02:40
#
#-------------------------------------------------

QT += core

QT += gui
QT += network

TARGET = OSCthulhu
#CONFIG   += console

mac {
    CONFIG += app_bundle
    ICON = gui/tentacleIcon.icns
}

win32 {
    CONFIG += console
}


TEMPLATE = app

BUILD_SERVER = true;

!win32 {
  INCLUDEPATH += ../externals/includes
  DEPENDPATH += ../externals/includes
  SOURCES += \
    externals/includes/ip/posix/UdpSocket.cpp \
    externals/includes/ip/posix/NetworkingUtils.cpp \
}

win32 {
    INCLUDEPATH += ../externals/includes
    DEPENDPATH += ../externals/includes
    SOURCES += \
        externals/includes/ip/win32/UdpSocket.cpp \
        externals/includes/ip/win32/NetworkingUtils.cpp
    WINQTSDK = C:\QtSDK\mingw\lib
    LIBS += $${WINQTSDK}\libws2_32.a
    LIBS += $${WINQTSDK}\libwinmm.a
}

SOURCES += main.cpp \
    gui/MainWindow.cpp \
    OSCthulhuServer.cpp \
    OSCthulhuClient.cpp \
    User.cpp \
    SyncObject.cpp \
    ClientUser.cpp \
    ClientOSCThread.cpp \
    ServerOSCThread.cpp \
    ClientPacketListener.cpp \
    ServerPacketListener.cpp \
    StateSynchronization.cpp \
    KeepAlive.cpp \
    ClientSyncObject.cpp \
    externals/includes/ip/IpEndpointName.cpp \
    externals/includes/osc/OscTypes.cpp \
    externals/includes/osc/OscReceivedElements.cpp \
    externals/includes/osc/OscPrintReceivedElements.cpp \
    externals/includes/osc/OscOutboundPacketStream.cpp \
    clientalivetimer.cpp \
    gui/preferenceswindow.cpp

HEADERS += \
    externals/includes/ip/UdpSocket.h \
    externals/includes/ip/TimerListener.h \
    externals/includes/ip/PacketListener.h \
    externals/includes/ip/NetworkingUtils.h \
    externals/includes/ip/IpEndpointName.h \
    externals/includes/osc/OscTypes.h \
    externals/includes/osc/OscReceivedElements.h \
    externals/includes/osc/OscPrintReceivedElements.h \
    externals/includes/osc/OscPacketListener.h \
    externals/includes/osc/OscOutboundPacketStream.h \
    externals/includes/osc/OscHostEndianness.h \
    externals/includes/osc/OscException.h \
    externals/includes/osc/MessageMappingOscPacketListener.h \
    OSCthulhuClient.h \
    User.h \
    SyncObject.h \
    KeepAlive.h \
    ClientSyncObject.h \
    gui/MainWindow.h \
    ClientUser.h \
    ClientOSCThread.h \
    ServerOSCThread.h \
    Constants.h \
    ClientPacketListener.h \
    ServerPacketListener.h \
    StateSynchronization.h\
    OSCthulhuServer.h \
    clientalivetimer.h \
    gui/preferenceswindow.h

FORMS += \
    MainWindow.ui

OTHER_FILES += \
    OSCthulhuDaemon.sh \
    gui/cthulhuStyleSheet.qss \
    gui/tentacle.png \

HEADERS += \
    LoginThread.h

SOURCES += \
    LoginThread.cpp

RESOURCES += \
    CthulhuResource.qrc
